/*
 * DisplayIcon.cpp
 *
 *  Created on: 31/05/2013
 *      Author: roger
 *
 *  This is a dummy application that is not actually on the menu. It is used to test icons.
 */

#include "DisplayIcon.h"

static const char *displayIcon_bitmap PROGMEM =
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!!!!!!!!!!!!!!!!!1%\"!Q-$\"!1%\"!1%!!!!!!!!!!!!!!!!!!!!!A)#"
		"\"!1%!!!!!1%\"!A)#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!!1%\"!!!!#AI+86V>FZ?8O,CYOLK[O\\O\\J[?HDY_0:76F,S]P!!!!!!!!"
		"!!!!!1%\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1%\"!1%\"$!Q-D)S-"
		"`````````````P\\_`@X^`P\\_`P\\_`0T]````````^P<WD9W.)#!A!!!!!A)#!1%\""
		"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!+SML`0T]`@X^`@X^^@8VQM,#X^`@"
		"_`P\\`@X^\\?XNPL[_\\_`P`P\\_````````````AI+#!Q-$\"!1%!!!!!!!!!!!!!!!!"
		"!!!!!1%\"!!!!!1%\"-4%R`````0T]`````0T]6V>8!1%\"!!!!]0$Q_PL[$1U.\"!1%"
		"+CIK````````````_`P\\````RM<'!!!!!!!!!!!!!!!!!!!!!!!!!!!!\"15&!!!!"
		"]@(R`P\\_````````````3UN,!Q-$!!!!\\O\\O^`@X\"Q=(!Q-$*35F````````````"
		"````_`P\\````N,3U!1%\"\"!1%!1%\"!!!!!!!!!!!!!Q-$L[_P````````````````"
		"````_@HZE*#1O\\O\\`````0T]V^@8C)C)YO,C_`P\\[_PL&R=8#1E*R-4%`@X^`@X^"
		"'BI;!1%\"!1%\"!!!!!!!!!!!!\"!1%^P<W`@X^N\\?X$AY/5F*3`0T]````````````"
		"`````````````````````P\\_SML+!A)#\"!1%?8FZ````````Q]0$!1%\"!1%\"!!!!"
		"!!!!!!!!\"A9'_@HZ````0DY_\"!1%\"!1%_@HZ````````````````````````````"
		"````````^`@X0$Q]*S=HYO,C````````\\?XN!Q-$!!!!!!!!!!!!!!!!#!A)]P,S"
		"`@X^HJ[?\"Q=(,#QM`0T]````````````````````````````````````````````"
		"````````````````^`@X\"A9'!1%\"!!!!!!!!!!!!!A)#P<W^`0T]`P\\_^@8V`0T]"
		"_`P\\````````````````````````````````````````````````````````````"
		"^`@X\"A9'!1%\"!!!!!!!!!!!!!1%\"\"!1%T]`0`````````````````0T]`P\\_`@X^"
		"`P\\_`````0T]````````````````````````````````````]`0T#1E*!!!!!!!!"
		"!!!!!!!!\"!1%!A)#!!!!/$AY66666V>8D9W._@HZ`@X^`P\\_`P\\_````````````"
		"````````````````````````````````\\?XN!A)#!1%\"!!!!!!!!!!!!!A)#!Q-$"
		"!A)#!1%\"!A)#!!!!!!!!7VN<`````P\\_R-4%!!!!!!!!RM<'````````````````"
		"````````````````=(\"Q!1%\"!1%\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"!!!!!!!!````````,CYO!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
		"";


DisplayIcon::DisplayIcon() {
}
void DisplayIcon::setup() {
#ifdef DEBUG_DISPLAYICON
	Serial.println(PSTR("DisplayIcon setup"));
#endif
	Graphics.setRotation(3);
	Graphics.setCursor(0,0);
	Graphics.fillScreen(BLACK);
	Icon icon = Icon(56,&displayIcon_bitmap[0]);
	icon.draw(10,10);
}

DisplayIcon::~DisplayIcon() {
	// TODO Auto-generated destructor stub
}
// uncomment this to get the app on the menu
//App *displayIcon = new DisplayIcon();
